package com.suixinsanren.design.command.demo04;

public class Fan {

    private final String name;
    private final String location;

    public Fan(String name, String location) {
        this.name = name;
        this.location = location;
    }

    public void open() {
        System.out.println(location + "的" + name + "风扇" + "已打开");
    }

    public void close() {
        System.out.println(location + "的" + name + "风扇" + "已关闭");
    }
}
